package ua.maxicash.validation.annotations;

import ua.maxicash.validation.CityValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = CityValidator.class)
public @interface City {
    String message() default "{javax.validation.constraints.Future.message}";
    Class<?>[] groups() default { };

	Class<? extends Payload>[] payload() default {};
}
